home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Shout3Ddemo / S3D_2E1.exe / Shout3d_runtime / codebase / models / BooleanEventToIntegerTest.s3d < prev    next >
Text File  |  2000-05-30  |  4KB  |  179 lines

  1. #VRML V2.0 utf8
  2. WorldInfo {
  3.  title "Spazz3D"
  4.  info [
  5.   "This VRML World was created with Spazz3D, a VRML 97 authoring tool"
  6.   "www.spazz3d.com"
  7.  ]
  8. }
  9. DEF DUMMY Transform{
  10. children[
  11.  
  12.     DEF dad_Box1 Transform {
  13.      translation -1.87176 0.86 0.0
  14.      rotation 0.865 0.503 0.0 0.684
  15.      children [
  16.       DEF BOX1_TOUCHSENSOR TouchSensor{}
  17.       DEF Box1 Shape {
  18.        appearance Appearance {
  19.         material DEF Red_mat Material {
  20.          diffuseColor 1.0 0.0 0.0
  21.         }
  22.        }
  23.        geometry IndexedFaceSet {
  24.         solid TRUE
  25.         creaseAngle 1.047
  26.         coord Coordinate {
  27.          point [
  28.           -0.50000 0.50000 -0.50000
  29.           -0.50000 0.50000 0.50000
  30.           0.50000 0.50000 0.50000
  31.           0.50000 0.50000 -0.50000
  32.           -0.50000 -0.50000 -0.50000
  33.           -0.50000 -0.50000 0.50000
  34.           0.50000 -0.50000 0.50000
  35.           0.50000 -0.50000 -0.50000
  36.          ]
  37.         }
  38.         coordIndex [
  39.           0 1 2 -1 
  40.           0 2 3 -1 
  41.           1 5 6 -1 
  42.           1 6 2 -1 
  43.           2 6 7 -1 
  44.           2 7 3 -1 
  45.           3 7 4 -1 
  46.           3 4 0 -1 
  47.           0 4 5 -1 
  48.           0 5 1 -1 
  49.           6 5 4 -1 
  50.           6 4 7 -1 
  51.         ]
  52.        }
  53.       }
  54.      ]
  55.     }
  56.  
  57.     ]
  58. }
  59. DEF SWITCH Switch{
  60. whichChoice -1
  61. choice[
  62.  
  63.     DEF CHOICE_0 Transform {
  64.      translation 0 0.86 0.0
  65.      rotation 0.865 0.503 0.0 0.684
  66.      children [
  67.       DEF Box1 Shape {
  68.        appearance Appearance {
  69.         material DEF Red_mat Material {
  70.          diffuseColor 1.0 0.0 0.0
  71.         }
  72.        }
  73.        geometry IndexedFaceSet {
  74.         solid TRUE
  75.         creaseAngle 1.047
  76.         coord Coordinate {
  77.          point [
  78.           -0.50000 0.50000 -0.50000
  79.           -0.50000 0.50000 0.50000
  80.           0.50000 0.50000 0.50000
  81.           0.50000 0.50000 -0.50000
  82.           -0.50000 -0.50000 -0.50000
  83.           -0.50000 -0.50000 0.50000
  84.           0.50000 -0.50000 0.50000
  85.           0.50000 -0.50000 -0.50000
  86.          ]
  87.         }
  88.         coordIndex [
  89.           0 1 2 -1 
  90.           0 2 3 -1 
  91.           1 5 6 -1 
  92.           1 6 2 -1 
  93.           2 6 7 -1 
  94.           2 7 3 -1 
  95.           3 7 4 -1 
  96.           3 4 0 -1 
  97.           0 4 5 -1 
  98.           0 5 1 -1 
  99.           6 5 4 -1 
  100.           6 4 7 -1 
  101.         ]
  102.        }
  103.       }
  104.      ]
  105.     }
  106.     DEF CHOICE_1 Transform {
  107.      translation 0 0.86 0.0
  108.      rotation 0.865 0.503 0.0 0.684
  109.      scale 2 2 2
  110.      children [
  111.       DEF Box1 Shape {
  112.        appearance Appearance {
  113.         material DEF Green_mat Material {
  114.          diffuseColor 0.0 1.0 0.0
  115.         }
  116.        }
  117.        geometry IndexedFaceSet {
  118.         solid TRUE
  119.         creaseAngle 1.047
  120.         coord Coordinate {
  121.          point [
  122.           -0.50000 0.50000 -0.50000
  123.           -0.50000 0.50000 0.50000
  124.           0.50000 0.50000 0.50000
  125.           0.50000 0.50000 -0.50000
  126.           -0.50000 -0.50000 -0.50000
  127.           -0.50000 -0.50000 0.50000
  128.           0.50000 -0.50000 0.50000
  129.           0.50000 -0.50000 -0.50000
  130.          ]
  131.         }
  132.         coordIndex [
  133.           0 1 2 -1 
  134.           0 2 3 -1 
  135.           1 5 6 -1 
  136.           1 6 2 -1 
  137.           2 6 7 -1 
  138.           2 7 3 -1 
  139.           3 7 4 -1 
  140.           3 4 0 -1 
  141.           0 4 5 -1 
  142.           0 5 1 -1 
  143.           6 5 4 -1 
  144.           6 4 7 -1 
  145.         ]
  146.        }
  147.       }
  148.      ]
  149.     }
  150.  
  151.     ]
  152. }
  153.     DEF Light1 DirectionalLight {
  154.      ambientIntensity 0.000
  155.      intensity 1.000
  156.      direction 0.99489 0.08952 0.04676
  157.      color 1.0 1.0 1.0
  158.      on FALSE
  159.     }
  160.  
  161. DEF TOGGLE Toggle{}
  162.  
  163. DEF BOOLEAN_TO_INTEGER_0 BooleanEventToInteger{
  164.     intField 0
  165. }
  166.  
  167. DEF BOOLEAN_TO_INTEGER_1 BooleanEventToInteger{
  168.     intField 1
  169. }
  170.  
  171. ROUTE BOX1_TOUCHSENSOR.touchTime TO TOGGLE.toggleTime
  172.  
  173. ROUTE TOGGLE.toggleValue TO BOOLEAN_TO_INTEGER_0.trueFilter
  174. ROUTE BOOLEAN_TO_INTEGER_0.intField TO SWITCH.whichChoice
  175.  
  176. ROUTE TOGGLE.toggleValue TO BOOLEAN_TO_INTEGER_1.falseFilter
  177. ROUTE BOOLEAN_TO_INTEGER_1.intField TO SWITCH.whichChoice
  178.  
  179.